<template>
  <div>

    <el-row>
      <el-col :offset="4" :span="16">
        <el-row style="margin-top: 30px;margin-bottom: 25px;">
          <el-col :span="24">
            <span style="font-size: 20px;font-weight: 600;">PlumGPT更新日志</span>
          </el-col>
        </el-row>

        <el-row>
          <el-col :span="24">
            <el-timeline>
              <el-timeline-item v-for="(item,index) in functionList" :key="index" :timestamp="item.commitDate" placement="top">
                <el-card>
                  <h4>{{item.commitTitle}}</h4>
                  <div v-html="item.commitDes"></div>
                  <p>{{item.commitName}} 提交于 {{item.commitTime}}</p>
                </el-card>
              </el-timeline-item>
            </el-timeline>
          </el-col>
        </el-row>
      </el-col>
    </el-row>




  </div>
</template>

<script>
export default {
  name: "index",
  data(){
    return{
      functionList:[]
    }
  },
  created() {
      this.getList();
  },
  methods:{
    getList(){
      this.$http.get("/request/open/function/update/list").then(res=>{
        this.functionList = res.data.data
      })
    }
  }
}
</script>

<style scoped>

</style>
